// store.js
import { defineStore } from 'pinia'

export const user = defineStore('StoreUser', {
    state: () => ({
        userInfo: {}
    }),
    getters: {

    },
    actions: {
        setUserInfo(newitem) {
            this.userInfo = newitem
        }
    },
    // 指定持久化的选项
    persist: {
        enabled: true
    }
})
